package com.hula.onion.book.server.service;

import com.hula.onion.book.server.common.CommonResponse;
import com.hula.onion.book.server.model.AccountInfo;

/**
 * Created by work on 2018/1/29.
 */
public interface AccountInfoService {
    void createPlatformAccountInfo(int userId, int platformId, int syncType, AccountInfo accountInfo);

    void updatePlatformAccountInfo(int userId, int platformId, AccountInfo accountInfo);

    CommonResponse getUserAccount(int userId);

    CommonResponse getUserPlatformAccount(int platformId, int investId);

    CommonResponse userPlatformAccountChart(int userId, int type);

    void insertOrUpdateAccountInfo(int userId, int platformId, int syncType, AccountInfo accountInfo);

    int delAccountInfo(int id);
}
